<%@ page language="java" import="java.util.*,java.text.SimpleDateFormat,com.ncp.model.entity.news.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
NewsBean nb=(NewsBean)request.getAttribute("nb");
//System.out.println(nb.getTitle());
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>My JSP 'news.jsp' starting page</title>
	<link href="css/common.css" type="text/css" rel="stylesheet" />

  </head>
  <body>
 	 <div id="allpage">
	
		<jsp:include flush="true" page="../index/head.jsp"></jsp:include>
		
		<div id="main" style="padding:50px; width:760px;">
			<p style="font-weight:bold; font-size:28px; line-height:30px; text-align:center;"><%=nb.getTitle() %></p>
			<p style="padding:20px 0;width:400px; margin:0 auto; line-height:30px;"><span class="right">浏览次数：<%=nb.getViews() %>次</span><span class="left">作者：哈哈哈&emsp;日期：<%=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(nb.getpDate()) %></span><div style="clear:both"></div></p>
			<p style=" border-top:1px solid #DDD; text-indent:2em; line-height:26px; padding:20px 0;"><%=nb.getCont() %></p>
		</div>
		<div id="slice"></div>
	
	<jsp:include flush="true" page="../index/foot.jsp"></jsp:include>
	</div>
  </body>
</html>

